package com.ljy.tkmodel.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 答题记录
 * </p>
 *
 * @author testjava
 * @since 2022-01-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ljy_exam_answer_0")
@ApiModel(value="LjyExamAnswer0对象", description="答题记录")
public class LjyExamAnswer0 implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "回答问的自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "学科id")
    private Integer cateId;

    @ApiModelProperty(value = "问题id")
    private Integer questionId;

    @ApiModelProperty(value = "用户表id")
    private Integer userId;

    @ApiModelProperty(value = "答题选项")
    @TableField(value = "answer")
    private String userAnswer;

    @ApiModelProperty(value = "是否答对")
    private Boolean isRight;

    @ApiModelProperty(value = "答题时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @TableField(value = "ctime")
    private Integer AnswerCtime;


}
